
**for PSID analysis in REStat paper "Breastfeeding and Children's Early Cognitive Outcomes."

/* PSID DATA CENTER *****************************************************
   JOBID            : 126403                            
   DATA_DOMAIN      : PSID                              
   USER_WHERE       : NULL                              
   FILE_TYPE        : All Individuals Data              
   OUTPUT_DATA_TYPE : ASCII                             
   STATEMENTS       : SAS Statements                    
   CODEBOOK_TYPE    : HTML                              
   N_OF_VARIABLES   : 153                               
   N_OF_OBSERVATIONS: 60598                             
   MAX_REC_LENGTH   : 411                               
   DATE & TIME      : May 23, 2011 @ 11:40:35
************************************************************************/

libname dd 'X:\Donnanew';

FILENAME pind08 "X:\Donnanew\pind08.txt" ;

DATA dd.pind08;
   ATTRIB
      ER30001  FORMAT=F4.   LABEL="1968 INTERVIEW NUMBER"                   
      ER30002  FORMAT=F3.   LABEL="PERSON NUMBER                         68"
      ER32000  FORMAT=F1.   LABEL="SEX OF INDIVIDUAL"                       
      ER32009  FORMAT=F4.   LABEL="1968 ID OF MOTHER"                       
      ER32010  FORMAT=F3.   LABEL="PERSON # OF MOTHER"                      
      ER32011  FORMAT=F4.   LABEL="YEAR MOTHER BORN"                        
      ER32012  FORMAT=F2.   LABEL="TOTAL # CHILDREN BORN TO MOTHER"         
      ER32013  FORMAT=F2.   LABEL="ORDER OF BIRTH TO MOTHER"                
      ER32014  FORMAT=F3.   LABEL="BIRTH WEIGHT OF THIS INDIVIDUAL"         
      ER32015  FORMAT=F1.   LABEL="MARITAL STATUS OF MOTHER AT BIRTH"       
      ER32016  FORMAT=F4.   LABEL="1968 ID OF FATHER"                       
      ER32017  FORMAT=F3.   LABEL="PERSON # OF FATHER"                      
      ER32018  FORMAT=F4.   LABEL="YEAR FATHER BORN"                        
      ER32019  FORMAT=F2.   LABEL="TOTAL # CHILDREN BORN TO FATHER"         
      ER32020  FORMAT=F2.   LABEL="ORDER OF BIRTH TO FATHER"                
      ER30313  FORMAT=F4.   LABEL="1980 INTERVIEW NUMBER"                   
      ER30314  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       80"
      ER30315  FORMAT=F1.   LABEL="RELATIONSHIP TO HEAD                  80"
      ER30326  FORMAT=F2.   LABEL="EDUCATION ATTAINED                    80"
      ER30343  FORMAT=F4.   LABEL="1981 INTERVIEW NUMBER"                   
      ER30344  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       81"
      ER30345  FORMAT=F1.   LABEL="RELATIONSHIP TO HEAD                  81"
      ER30356  FORMAT=F2.   LABEL="COMPLETED EDUC                        81"
      ER30373  FORMAT=F4.   LABEL="1982 INTERVIEW NUMBER"                   
      ER30374  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       82"
      ER30375  FORMAT=F1.   LABEL="RELATIONSHIP TO HEAD                  82"
      ER30384  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   82"
      ER30399  FORMAT=F4.   LABEL="1983 INTERVIEW NUMBER"                   
      ER30400  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       83"
      ER30401  FORMAT=F2.   LABEL="RELATIONSHIP TO HEAD                  83"
      ER30403  FORMAT=F2.   LABEL="MONTH IND BORN                        83"
      ER30404  FORMAT=F4.   LABEL="YEAR IND BORN                         83"
      ER30413  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   83"
      ER30429  FORMAT=F4.   LABEL="1984 INTERVIEW NUMBER"                   
      ER30430  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       84"
      ER30431  FORMAT=F2.   LABEL="RELATIONSHIP TO HEAD                  84"
      ER30433  FORMAT=F2.   LABEL="MONTH IND BORN                        84"
      ER30434  FORMAT=F4.   LABEL="YEAR IND BORN                         84"
      ER30443  FORMAT=F2.   LABEL="COMPLETED EDUC                        84"
      ER30463  FORMAT=F4.   LABEL="1985 INTERVIEW NUMBER"                   
      ER30464  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       85"
      ER30465  FORMAT=F2.   LABEL="RELATIONSHIP TO HEAD                  85"
      ER30467  FORMAT=F2.   LABEL="MONTH IND BORN                        85"
      ER30468  FORMAT=F4.   LABEL="YEAR IND BORN                         85"
      ER30478  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   85"
      ER30498  FORMAT=F4.   LABEL="1986 INTERVIEW NUMBER"                   
      ER30499  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       86"
      ER30500  FORMAT=F2.   LABEL="RELATIONSHIP TO HEAD                  86"
      ER30502  FORMAT=F2.   LABEL="MONTH IND BORN                        86"
      ER30503  FORMAT=F4.   LABEL="YEAR IND BORN                         86"
      ER30513  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   86"
      ER30535  FORMAT=F4.   LABEL="1987 INTERVIEW NUMBER"                   
      ER30536  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       87"
      ER30537  FORMAT=F2.   LABEL="RELATIONSHIP TO HEAD                  87"
      ER30539  FORMAT=F2.   LABEL="MONTH IND BORN                        87"
      ER30540  FORMAT=F4.   LABEL="YEAR IND BORN                         87"
      ER30549  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   87"
      ER30570  FORMAT=F4.   LABEL="1988 INTERVIEW NUMBER"                   
      ER30571  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       88"
      ER30572  FORMAT=F2.   LABEL="RELATION TO HEAD                      88"
      ER30574  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 88"
      ER30575  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  88"
      ER30584  FORMAT=F2.   LABEL="COMPLETED EDUC-IND                    88"
      ER30606  FORMAT=F4.   LABEL="1989 INTERVIEW NUMBER"                   
      ER30607  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       89"
      ER30608  FORMAT=F2.   LABEL="RELATION TO HEAD                      89"
      ER30610  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 89"
      ER30611  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  89"
      ER30620  FORMAT=F2.   LABEL="COMPLETED EDUC-IND                    89"
      ER30642  FORMAT=F5.   LABEL="1990 INTERVIEW NUMBER"                   
      ER30643  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       90"
      ER30644  FORMAT=F2.   LABEL="RELATION TO HEAD                      90"
      ER30646  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 90"
      ER30647  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  90"
      ER30657  FORMAT=F2.   LABEL="COMPLETED EDUC-IND                    90"
      ER30689  FORMAT=F4.   LABEL="1991 INTERVIEW NUMBER"                   
      ER30690  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       91"
      ER30691  FORMAT=F2.   LABEL="RELATION TO HEAD                      91"
      ER30693  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 91"
      ER30694  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  91"
      ER30703  FORMAT=F2.   LABEL="COMPLETED EDUC-IND                    91"
      ER30733  FORMAT=F4.   LABEL="1992 INTERVIEW NUMBER"                   
      ER30734  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       92"
      ER30735  FORMAT=F2.   LABEL="RELATION TO HEAD                      92"
      ER30737  FORMAT=F2.   LABEL="MONTH IND BORN                        92"
      ER30738  FORMAT=F4.   LABEL="YEAR IND BORN                         92"
      ER30748  FORMAT=F2.   LABEL="COMPLETED EDUCATION                   92"
      ER30806  FORMAT=F5.   LABEL="1993 INTERVIEW NUMBER"                   
      ER30807  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       93"
      ER30808  FORMAT=F2.   LABEL="RELATION TO HEAD                      93"
      ER30810  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 93"
      ER30811  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  93"
      ER30820  FORMAT=F2.   LABEL="YRS COMPLETED EDUCATION               93"
      ER33101  FORMAT=F5.   LABEL="1994 INTERVIEW NUMBER"                   
      ER33102  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       94"
      ER33103  FORMAT=F2.   LABEL="RELATION TO HEAD                      94"
      ER33105  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 94"
      ER33106  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  94"
      ER33115  FORMAT=F2.   LABEL="YRS COMPLETED EDUC                    94"
      ER33201  FORMAT=F5.   LABEL="1995 INTERVIEW NUMBER"                   
      ER33202  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       95"
      ER33203  FORMAT=F2.   LABEL="RELATION TO HEAD                      95"
      ER33205  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 95"
      ER33206  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  95"
      ER33215  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             95"
      ER33301  FORMAT=F4.   LABEL="1996 INTERVIEW NUMBER"                   
      ER33302  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       96"
      ER33303  FORMAT=F2.   LABEL="RELATION TO HEAD                      96"
      ER33305  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 96"
      ER33306  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  96"
      ER33315  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             96"
      ER33401  FORMAT=F5.   LABEL="1997 INTERVIEW NUMBER"                   
      ER33402  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       97"
      ER33403  FORMAT=F2.   LABEL="RELATION TO HEAD                      97"
      ER33405  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 97"
      ER33406  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  97"
      ER33415  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             97"
      ER33419  FORMAT=F1.   LABEL="WHETHER SELECTED FOR CDS              97"
      ER33420  FORMAT=F2.   LABEL="RESULT OF CDS INTERVIEW               97"
      ER33421  FORMAT=F2.   LABEL="ES1 STATE WHERE BORN                  97"
      ER33422  FORMAT=F3.   LABEL="ES1 COUNTY/COUNTRY WHERE BORN         97"
      ER33501  FORMAT=F5.   LABEL="1999 INTERVIEW NUMBER"                   
      ER33502  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       99"
      ER33503  FORMAT=F2.   LABEL="RELATION TO HEAD                      99"
      ER33505  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 99"
      ER33506  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  99"
      ER33516  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             99"
      ER33524  FORMAT=F2.   LABEL="KL33A/ES1 STATE WHERE BORN            99"
      ER33525  FORMAT=F3.   LABEL="KL33A/ES1 COUNTY/COUNTRY WHERE BORN   99"
      ER33601  FORMAT=F4.   LABEL="2001 INTERVIEW NUMBER"                   
      ER33602  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       01"
      ER33603  FORMAT=F2.   LABEL="RELATION TO HEAD                      01"
      ER33605  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 01"
      ER33606  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  01"
      ER33616  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             01"
      ER33701  FORMAT=F5.   LABEL="2003 INTERVIEW NUMBER"                   
      ER33702  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       03"
      ER33703  FORMAT=F2.   LABEL="RELATION TO HEAD                      03"
      ER33705  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 03"
      ER33706  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  03"
      ER33716  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             03"
      ER33801  FORMAT=F5.   LABEL="2005 INTERVIEW NUMBER"                   
      ER33802  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       05"
      ER33803  FORMAT=F2.   LABEL="RELATION TO HEAD                      05"
      ER33805  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 05"
      ER33806  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  05"
      ER33817  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             05"
      ER33901  FORMAT=F5.   LABEL="2007 INTERVIEW NUMBER"                   
      ER33902  FORMAT=F2.   LABEL="SEQUENCE NUMBER                       07"
      ER33903  FORMAT=F2.   LABEL="RELATION TO HEAD                      07"
      ER33905  FORMAT=F2.   LABEL="MONTH INDIVIDUAL BORN                 07"
      ER33906  FORMAT=F4.   LABEL="YEAR INDIVIDUAL BORN                  07"
      ER33917  FORMAT=F2.   LABEL="YEARS COMPLETED EDUCATION             07"
   ;
   INFILE pind08 LRECL = 411 ; 
   INPUT 
      ER30001      1 - 4     ER30002      5 - 7     ER32000      8 - 8    
      ER32009      9 - 12    ER32010     13 - 15    ER32011     16 - 19   
      ER32012     20 - 21    ER32013     22 - 23    ER32014     24 - 26   
      ER32015     27 - 27    ER32016     28 - 31    ER32017     32 - 34   
      ER32018     35 - 38    ER32019     39 - 40    ER32020     41 - 42   
      ER30313     43 - 46    ER30314     47 - 48    ER30315     49 - 49   
      ER30326     50 - 51    ER30343     52 - 55    ER30344     56 - 57   
      ER30345     58 - 58    ER30356     59 - 60    ER30373     61 - 64   
      ER30374     65 - 66    ER30375     67 - 67    ER30384     68 - 69   
      ER30399     70 - 73    ER30400     74 - 75    ER30401     76 - 77   
      ER30403     78 - 79    ER30404     80 - 83    ER30413     84 - 85   
      ER30429     86 - 89    ER30430     90 - 91    ER30431     92 - 93   
      ER30433     94 - 95    ER30434     96 - 99    ER30443    100 - 101  
      ER30463    102 - 105   ER30464    106 - 107   ER30465    108 - 109  
      ER30467    110 - 111   ER30468    112 - 115   ER30478    116 - 117  
      ER30498    118 - 121   ER30499    122 - 123   ER30500    124 - 125  
      ER30502    126 - 127   ER30503    128 - 131   ER30513    132 - 133  
      ER30535    134 - 137   ER30536    138 - 139   ER30537    140 - 141  
      ER30539    142 - 143   ER30540    144 - 147   ER30549    148 - 149  
      ER30570    150 - 153   ER30571    154 - 155   ER30572    156 - 157  
      ER30574    158 - 159   ER30575    160 - 163   ER30584    164 - 165  
      ER30606    166 - 169   ER30607    170 - 171   ER30608    172 - 173  
      ER30610    174 - 175   ER30611    176 - 179   ER30620    180 - 181  
      ER30642    182 - 186   ER30643    187 - 188   ER30644    189 - 190  
      ER30646    191 - 192   ER30647    193 - 196   ER30657    197 - 198  
      ER30689    199 - 202   ER30690    203 - 204   ER30691    205 - 206  
      ER30693    207 - 208   ER30694    209 - 212   ER30703    213 - 214  
      ER30733    215 - 218   ER30734    219 - 220   ER30735    221 - 222  
      ER30737    223 - 224   ER30738    225 - 228   ER30748    229 - 230  
      ER30806    231 - 235   ER30807    236 - 237   ER30808    238 - 239  
      ER30810    240 - 241   ER30811    242 - 245   ER30820    246 - 247  
      ER33101    248 - 252   ER33102    253 - 254   ER33103    255 - 256  
      ER33105    257 - 258   ER33106    259 - 262   ER33115    263 - 264  
      ER33201    265 - 269   ER33202    270 - 271   ER33203    272 - 273  
      ER33205    274 - 275   ER33206    276 - 279   ER33215    280 - 281  
      ER33301    282 - 285   ER33302    286 - 287   ER33303    288 - 289  
      ER33305    290 - 291   ER33306    292 - 295   ER33315    296 - 297  
      ER33401    298 - 302   ER33402    303 - 304   ER33403    305 - 306  
      ER33405    307 - 308   ER33406    309 - 312   ER33415    313 - 314  
      ER33419    315 - 315   ER33420    316 - 317   ER33421    318 - 319  
      ER33422    320 - 322   ER33501    323 - 327   ER33502    328 - 329  
      ER33503    330 - 331   ER33505    332 - 333   ER33506    334 - 337  
      ER33516    338 - 339   ER33524    340 - 341   ER33525    342 - 344  
      ER33601    345 - 348   ER33602    349 - 350   ER33603    351 - 352  
      ER33605    353 - 354   ER33606    355 - 358   ER33616    359 - 360  
      ER33701    361 - 365   ER33702    366 - 367   ER33703    368 - 369  
      ER33705    370 - 371   ER33706    372 - 375   ER33716    376 - 377  
      ER33801    378 - 382   ER33802    383 - 384   ER33803    385 - 386  
      ER33805    387 - 388   ER33806    389 - 392   ER33817    393 - 394  
      ER33901    395 - 399   ER33902    400 - 401   ER33903    402 - 403  
      ER33905    404 - 405   ER33906    406 - 409   ER33917    410 - 411  

   ;
proc means;
run ;
